/*
 * hsourceobject.h
 *
 *  Created on: Apr 7, 2012
 *      Author: benoybose
 */

#ifndef HCSRCOBJ_H_
#define HCSRCOBJ_H_

#include "hcstring.h"

extern const char* EXTENSION_SOURCE;
extern const char* EXTENSION_LIBRARY;

extern const int HSOURCE_OBJECT_TYPE_INVALID;
extern const int HSOURCE_OBJECT_TYPE_CODE;
extern const int HSOURCE_OBJECT_TYPE_LIB;

typedef struct _hcsrcobj {
    hcstring* filename;
    int type;
} hcsrcobj;

hcsrcobj* hcsrcobj_create(const char* fileName, const char* extension);
void hcsrcobj_print(void*);


#endif /* HCSRCOBJ_H_ */
